package com.bflow.api.bo;

import com.bflow.commons.bean.QueryParam;

import java.io.Serializable;

/**
 * 功能：BflowRunTask 任务-查询参数对象
 * 作者：haowen
 * 日期：2018-12-13
 */
public class BflowRunTaskQueryParam extends QueryParam implements Serializable {

	private static final long serialVersionUID = 8213176791905299748L;
	
	private BflowRunTaskBo bflowRunTask;

	public BflowRunTaskQueryParam() {
	}

	public BflowRunTaskQueryParam(BflowRunTaskBo bflowRunTask) {
		setBflowRunTask(bflowRunTask);
	}

	public BflowRunTaskBo getBflowRunTask() {
		return bflowRunTask;
	}

	public BflowRunTaskBo getBoIfNullAndNew() {
		if(bflowRunTask == null)
			bflowRunTask = new BflowRunTaskBo();
		return bflowRunTask;
	}

	public void setBflowRunTask(BflowRunTaskBo bflowRunTask) {
		super.setParamBean(bflowRunTask);
		this.bflowRunTask = bflowRunTask;
	}
}